swagger http://localhost:8080/timeShop/api-docs api_key Explore My Apps
API Title My Apps API Description Contact the developer
client/commen/register Show/Hide List Operations Expand Operations
client/demand Show/Hide List Operations Expand Operations DELETE
/client/demand likeTheDemand GET /client/demand likeTheDemand HEAD
/client/demand likeTheDemand OPTIONS /client/demand likeTheDemand PATCH
/client/demand likeTheDemand POST /client/demand likeTheDemand PUT
/client/demand likeTheDemand DELETE /client/demand/addChar addChar GET
/client/demand/addChar addChar HEAD /client/demand/addChar addChar
OPTIONS /client/demand/addChar addChar PATCH /client/demand/addChar
addChar POST /client/demand/addChar addChar PUT /client/demand/addChar
addChar DELETE /client/demand/addComment addComment GET
/client/demand/addComment addComment HEAD /client/demand/addComment
addComment OPTIONS /client/demand/addComment addComment PATCH
/client/demand/addComment addComment POST /client/demand/addComment
addComment PUT /client/demand/addComment addComment DELETE
/client/demand/addCommentChildComment addCommentChildComment GET
/client/demand/addCommentChildComment addCommentChildComment HEAD
/client/demand/addCommentChildComment addCommentChildComment OPTIONS
/client/demand/addCommentChildComment addCommentChildComment PATCH
/client/demand/addCommentChildComment addCommentChildComment POST
/client/demand/addCommentChildComment addCommentChildComment PUT
/client/demand/addCommentChildComment addCommentChildComment DELETE
/client/demand/addDemand addDemand GET /client/demand/addDemand
addDemand HEAD /client/demand/addDemand addDemand OPTIONS
/client/demand/addDemand addDemand PATCH /client/demand/addDemand
addDemand POST /client/demand/addDemand addDemand PUT
/client/demand/addDemand addDemand DELETE
/client/demand/addDemandRequest addDemandRequest GET
/client/demand/addDemandRequest addDemandRequest HEAD
/client/demand/addDemandRequest addDemandRequest OPTIONS
/client/demand/addDemandRequest addDemandRequest PATCH
/client/demand/addDemandRequest addDemandRequest POST
/client/demand/addDemandRequest addDemandRequest PUT
/client/demand/addDemandRequest addDemandRequest DELETE
/client/demand/getDemand getDemand GET /client/demand/getDemand
getDemand HEAD /client/demand/getDemand getDemand OPTIONS
/client/demand/getDemand getDemand PATCH /client/demand/getDemand
getDemand POST /client/demand/getDemand getDemand PUT
/client/demand/getDemand getDemand DELETE /client/demand/getDemandDetail
getDemandDetail GET /client/demand/getDemandDetail getDemandDetail
Implementation Notes getDemandDetail Response Class (Status 200) OK
ModelModel Schema Response Content Type Parameters Parameter Value
Description Parameter Type Data Type body 2 Parameter content type:
demandId body string body 4 Parameter content type: filterUserId body
string Response Messages HTTP Status Code Reason Response Model Headers
401 Unauthorized 403 Forbidden 404 Not Found default Try it out!Hide
Response Curl curl -X GET --header 'Content-Type: application/json'
--header 'Accept: text/html' -d '4'
'http://localhost:8080/timeShop/client/demand/getDemandDetail' Request
URL http://localhost:8080/timeShop/client/demand/getDemandDetail
Response Body
<!DOCTYPE html>
<html>
<head>
<title>Apache Tomcat/8.0.20 - Error report</title>
<style type="text/css">
H1 {
	font-family: Tahoma, Arial, sans-serif;
	color: white;
	background-color: #525D76;
	font-size: 22px;
}

H2 {
	font-family: Tahoma, Arial, sans-serif;
	color: white;
	background-color: #525D76;
	font-size: 16px;
}

H3 {
	font-family: Tahoma, Arial, sans-serif;
	color: white;
	background-color: #525D76;
	font-size: 14px;
}

BODY {
	font-family: Tahoma, Arial, sans-serif;
	color: black;
	background-color: white;
}

B {
	font-family: Tahoma, Arial, sans-serif;
	color: white;
	background-color: #525D76;
}

P {
	font-family: Tahoma, Arial, sans-serif;
	background: white;
	color: black;
	font-size: 12px;
}

A {
	color: black;
}

A.name {
	color: black;
}

.line {
	height: 1px;
	background-color: #525D76;
	border: none;
}
</style>
</head>
<body>
	<h1>HTTP Status 500 - Request processing failed; nested exception
		is java.lang.NumberFormatException: null</h1>
	<div class="line"></div>
	<p>
		<b>type</b> Exception report
	</p>
	<p>
		<b>message</b> <u>Request processing failed; nested exception is
			java.lang.NumberFormatException: null</u>
	</p>
	<p>
		<b>description</b> <u>The server encountered an internal error
			that prevented it from fulfilling this request.</u>
	</p>
	<p>
		<b>exception</b>
	</p>
	<pre>org.springframework.web.util.NestedServletException: Request processing failed; nested exception is java.lang.NumberFormatException: null
	org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:981)
	org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:860)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:618)
	org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:845)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:725)
	org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
	org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:121)
	org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
	org.springframework.orm.hibernate4.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:151)
	org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
</pre>
	<p>
		<b>root cause</b>
	</p>
	<pre>java.lang.NumberFormatException: null
	java.lang.Integer.parseInt(Unknown Source)
	java.lang.Integer.valueOf(Unknown Source)
	myTeam.timeShop.dao.impl.DemandDaoImpl.get(DemandDaoImpl.java:32)
	myTeam.timeShop.dao.impl.DemandDaoImpl.get(DemandDaoImpl.java:1)
	myTeam.timeShop.service.impl.DemandServiceImpl.get(DemandServiceImpl.java:47)
	myTeam.timeShop.service.impl.DemandServiceImpl.getDemandDetail(DemandServiceImpl.java:277)
	myTeam.timeShop.controller.DemandController.getDemandDetail(DemandController.java:154)
	sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	java.lang.reflect.Method.invoke(Unknown Source)
	org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:222)
	org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:137)
	org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:110)
	org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:814)
	org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:737)
	org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:85)
	org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:959)
	org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:893)
	org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:969)
	org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:860)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:618)
	org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:845)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:725)
	org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
	org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:121)
	org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
	org.springframework.orm.hibernate4.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:151)
	org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
</pre>
	<p>
		<b>note</b> <u>The full stack trace of the root cause is available
			in the Apache Tomcat/8.0.20 logs.</u>
	</p>
	<hr class="line">
	<h3>Apache Tomcat/8.0.20</h3>
</body>
</html>
Response Code 500 Response Headers { "date": "Tue, 29 Mar 2016 20:54:19
GMT", "server": "Apache-Coyote/1.1", "connection": "close",
"content-length": "4955", "content-language": "en", "content-type":
"text/html;charset=utf-8" } HEAD /client/demand/getDemandDetail
getDemandDetail OPTIONS /client/demand/getDemandDetail getDemandDetail
PATCH /client/demand/getDemandDetail getDemandDetail POST
/client/demand/getDemandDetail getDemandDetail PUT
/client/demand/getDemandDetail getDemandDetail DELETE
/client/demand/getOtherUser getOtherUser GET /client/demand/getOtherUser
getOtherUser HEAD /client/demand/getOtherUser getOtherUser OPTIONS
/client/demand/getOtherUser getOtherUser PATCH
/client/demand/getOtherUser getOtherUser POST
/client/demand/getOtherUser getOtherUser PUT /client/demand/getOtherUser
getOtherUser client/user Show/Hide List Operations Expand Operations [
base url: /timeShop ]
